local js_tushe = fk.CreateSkill {
  name = "js__tushe",
}

js_tushe:addEffect(fk.TargetSpecified, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(self) and data.card.type ~= Card.TypeEquip and data.firstTarget
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(player,{skill_name=self.name,prompt="#js__tushe-invoke:::"..#data.tos})
  end,
  on_use = function(self, event, target, player, data)
    if not player:isKongcheng() then
      player:showCards(player.player_cards[Player.Hand])
    end
    if player.dead then return end
    if #table.filter(player:getCardIds(Player.Hand), function(cid)
      return Fk:getCardById(cid).type == Card.TypeBasic end) == 0 and #data.tos > 0 then
      player:drawCards(#data.tos, self.name)
    end
  end,
})

return js_tushe